/*
 *  Object.cpp
 *  rayTracer
 *
 *  Created by Zachry Thayer on 10/6/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#include "Object.h"

Vec3 Object::getPosition(){
	return pos;
}

Vec3 Object::getScale(){
	return scl;
}

Vec3 Object::getRotation(){
	return rot;
}

void Object::setMaterial(Material &material){
	mat = material;
}


Material Object::getMaterial(){
	return mat;
}

void Object::translate(Vec3 &offset){
	pos = pos + offset;
}


void Object::moveTo(Vec3 &position){
	pos = position;
}

void Object::scale(Vec3 &scaler){
	scl * scaler;
}

void Object::setScale(Vec3 &newScale){
	scl = newScale;
}

void Object::rotateX(float theta){
	rot.x + theta;
}

void Object::rotateY(float theta){
	rot.y + theta;
}

void Object::rotateZ(float theta){
	rot.z + theta;
}

void Object::rotate(Vec3 &rotator){
	rot + rotator;
}

void Object::setRotation(Vec3 &rotation){
	rot = rotation;
}

/*
Intersect Object::intersect(Ray &ray){
	return Intersect();
}

	// subclass implemented	
Ray Object::normal(Intersect &intersection){
	return Ray();
}


Ray Object::reflect(Ray &ray, Intersect &intersection){
	return Ray();
}


bool Object::inside(Vec3 &point){
	return false;
}

*/

